package com.nt.oam.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nt.common.annotation.Excel;
import com.nt.common.core.domain.BaseEntity;

/**
 * 人员管理对象 ant_personnel_manage
 *
 * @author JZFeng
 * @date 2025-02-05
 */
@TableName(resultMap = "com.nt.oam.mapper.AntPersonnelManageMapper.AntPersonnelManageResult" )
public class AntPersonnelManage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 人员管理
     */
    @TableId(value = "person_id" , type = IdType.AUTO)
    private Long personId;

    /**
     * 姓名
     */
    @Excel(name = "姓名" )
    private String personName;

    /**
     * 性别
     */
    @Excel(name = "性别" )
    private String personSex;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式" )
    private String personPhone;

    /**
     * 所属机构
     */
    @Excel(name = "所属机构" )
    private String personOrganization;

    /**
     * 所属部门
     */
    @Excel(name = "所属部门" )
    private String personSection;

    /**
     * 职务
     */
    @Excel(name = "职务" )
    private String personJob;

    /**
     * 权限
     */
    private Long personLimit;

    /**
     * 创建人
     */
    private String createPerson;

    /**
     * 更新人
     */
    private String updatePerson;

    /**
     * 是否删除
     */
    private Integer isDeleted;
    /**
     * 医院id
     */
    private Long personOrganizationId;
    /**
     * 是否正在修改, 0-不在修改， 1-正在修改
     */
    private Integer isModify;

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    public Long getPersonId() {
        return personId;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonSex(String personSex) {
        this.personSex = personSex;
    }

    public String getPersonSex() {
        return personSex;
    }

    public void setPersonPhone(String personPhone) {
        this.personPhone = personPhone;
    }

    public String getPersonPhone() {
        return personPhone;
    }

    public void setPersonOrganization(String personOrganization) {
        this.personOrganization = personOrganization;
    }

    public String getPersonOrganization() {
        return personOrganization;
    }

    public void setPersonSection(String personSection) {
        this.personSection = personSection;
    }

    public String getPersonSection() {
        return personSection;
    }

    public void setPersonJob(String personJob) {
        this.personJob = personJob;
    }

    public String getPersonJob() {
        return personJob;
    }

    public void setPersonLimit(Long personLimit) {
        this.personLimit = personLimit;
    }

    public Long getPersonLimit() {
        return personLimit;
    }

    public void setCreatePerson(String createPerson) {
        this.createPerson = createPerson;
    }

    public String getCreatePerson() {
        return createPerson;
    }

    public void setUpdatePerson(String updatePerson) {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson() {
        return updatePerson;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setPersonOrganizationId(Long personOrganizationId) {
        this.personOrganizationId = personOrganizationId;
    }

    public Long getPersonOrganizationId() {
        return personOrganizationId;
    }

    public void setIsModify(Integer isModify) {
        this.isModify = isModify;
    }

    public Integer getIsModify() {
        return isModify;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("personId" , getPersonId())
                .append("personName" , getPersonName())
                .append("personSex" , getPersonSex())
                .append("personPhone" , getPersonPhone())
                .append("personOrganization" , getPersonOrganization())
                .append("personSection" , getPersonSection())
                .append("personJob" , getPersonJob())
                .append("personLimit" , getPersonLimit())
                .append("createTime" , getCreateTime())
                .append("createPerson" , getCreatePerson())
                .append("updateTime" , getUpdateTime())
                .append("updatePerson" , getUpdatePerson())
                .append("person_organization_id",getPersonOrganizationId())
                .append("is_deleted", getIsDeleted())
                .append("isModify" , getIsModify())
                .toString();
    }
}
